package com.example.fishdriver.recyclerviewdemo;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;

import com.example.fishdriver.recyclerviewdemo.srcollcompletelister.ScrollCompleteActivity;
import com.example.fishdriver.recyclerviewdemo.toubuzhanshi.TouBuZhanShiActivity;
import com.example.fishdriver.recyclerviewdemo.updatastyle.UpdateStyleActivity;
import com.example.fishdriver.recyclerviewdemo.updatestyleloadAndrefresing.LoadAndRefreshingActivity;

public class MainActivity extends AppCompatActivity {
    private Button mBtnGridViewMode, mBtnListViewMode;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        findViews();
    }

    private void findViews() {
        mBtnGridViewMode = (Button) this.findViewById(R.id.btn_gv_mode);
        mBtnGridViewMode.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(MainActivity.this, IiemDecorationActivity.class));
            }
        });
        mBtnListViewMode = (Button) this.findViewById(R.id.btn_lv_mode);
        mBtnListViewMode.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(MainActivity.this, UpdateStyleActivity.class));
            }
        });
        findViewById(R.id.btn_fres_mode).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                startActivity(new Intent(MainActivity.this, LoadAndRefreshingActivity.class));
            }
        });
        findViewById(R.id.btn_sroll_complte_mode).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                startActivity(new Intent(MainActivity.this, ScrollCompleteActivity.class));
            }
        });
        findViewById(R.id.btn_tou_bu_zhan_shi_mode).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                startActivity(new Intent(MainActivity.this, TouBuZhanShiActivity.class));
            }
        });
    }
}
